using System.Configuration;
using System.Xml;

namespace Framework.Common.Configuration
{
    public class Configuration
    {
        XmlNode root;
        public static Configuration GetConfig()
        {
            return (Configuration)ConfigurationManager.GetSection("test");
        }

        public void LoadValuesFromConfigurationXml(XmlNode node)
        {
            root = node;
        }

        public XmlNode GetSection(string nodePath)
        {
            return root.SelectSingleNode(nodePath);
        }
    }
}
